package com.cn.xiaonuo.slbfinances.stockcontrol.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.slbfinances.stockcontrol.entity.SlShopStockControl;
import com.cn.xiaonuo.slbfinances.stockcontrol.param.PageStockLogParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SlShopStockControlMapper extends BaseMapper<SlShopStockControl> {

    /**
     * 出库合计
     * @param param
     * @return
     */
    Map<String, Object> totalIssue(PageStockLogParam param);

    /**
     * 入库合计
     * @param param
     * @return
     */
    Map<String, Object> totalReceipt(PageStockLogParam param);

    /**
     * 可用库存
     * @param param
     * @return
     */
    Map<String, Object> availableInventory(PageStockLogParam param);
}
